/**
 * Implementation of Order function
 *
 * author: Marcin Wachulski
 *
 */
#include "KOV.h"
#include <algorithm>

void Order(FormalContext &local_fc, bool (*sort_f)(const OAPair &e1, const OAPair &e2)) {
    if (local_fc.data.size() < 2)
        return;
    std::sort(local_fc.data.begin(), local_fc.data.end(), OAPairCompare);
}